//// demo_prog/chapter6/lec10_string_demo.c
#include <stdio.h>
int main(void)
{
    char c[15] = "I am happy";
    c[11] = 'Y'; c[12] = 'e'; c[13] = 's'; c[14] = '\0';
    // 打印字符串看看
    printf("%s", c);
    printf("\n");
    // 打印字符串时遇到'\0'就停止输出了
    c[3] = '\0';
    printf("%s", c);
    return 0;
}